import { CHANGESPINACTIVATE, CHANGEBASEUSERINFO, CHANGEBASEUSERINFOSAGA, CHANGEPAGEACTIVATE,
         CHANGESEARCHVALUEACTIVATE, CHANGETASKTYPEIDACTIVATE
} from '../constants'

// 用户做一些耗时操作，进行页面停留的加载， 比如：登录的时候、注册的时候、上传文件的时候等等
export const ChangeSpinACtivate = (obj) => ({
    type: CHANGESPINACTIVATE,
    data: obj
})

// 用户基本信息记录
export const ChangeBaseUserInfo = (obj) => ({
    type: CHANGEBASEUSERINFO,
    data: obj
})

// 登录成功后请求用户基本信息，存于公共状态中
export const ChangeBaseUserInfoSaga = (obj) => ({
    type: CHANGEBASEUSERINFOSAGA,
    data: obj
})

// 记录用户浏览的页数
export const ChangePageActivate = (obj) => ({
    type: CHANGEPAGEACTIVATE,
    data: obj
})

// 修改搜索内容
export const ChangeSearchValueActivate = (obj) => ({
    type: CHANGESEARCHVALUEACTIVATE,
    data: obj
})

// 修改首页检索的任务类型
export const ChangeTaskTypeIdActivate = (obj) => ({
    type: CHANGETASKTYPEIDACTIVATE,
    data: obj
})